package cc.wanforme.st.server.base.mapper;

import cc.wanforme.st.server.base.entity.UserRole;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wanne
 * @since 2023-01-03
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

	/**获取用户的所有角色
	 * @param userId
	 * @return
	 */
	List<UserRole> selectRoles(long userId);
	
}
